﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace tcm.request.Device
{
    public class TCMDeviceRequest
    {
        /// <summary>
        /// 认证key
        /// </summary>
        public string token { get; set; } = "";

        /// <summary>
        /// 设备id
        /// </summary>
        public long site_id { get; set; }

        /// <summary>
        /// 系统状态 0：正常；1：异常退出
        /// </summary>
        public int system_status { get; set; }

        /// <summary>
        /// 打印机状态   0：正常；1：连接异常；2:缺纸
        /// </summary>
        public int printer_status { get; set; }

        /// <summary>
        /// 读卡器状态   0：正常；1：连接异常
        /// </summary>
        public int card_reader_status { get; set; }

        /// <summary>
        /// 摄像头   0：正常；1：连接异常
        /// </summary>
        public int camera_status { get; set; }

        /// <summary>
        /// 温湿度传感器状态   0：正常；1：连接异常
        /// </summary>
        public int sensor_status { get; set; }

        /// <summary>
        /// 温湿度数值【温度；湿度】
        /// </summary>
        public string temperature { get; set; }
    }


    public class ControlDeviceSelect
    {
        /// <summary>
        /// 认证key
        /// </summary>
        public string token { get; set; } = "";


        /// <summary>
        /// 系统状态 0：正常；1：异常退出
        /// </summary>
        public int system_status { get; set; }

        /// <summary>
        /// 打印机状态   0：正常；1：连接异常；2:缺纸
        /// </summary>
        public int printer_status { get; set; }

        /// <summary>
        /// 读卡器状态   0：正常；1：连接异常
        /// </summary>
        public int card_reader_status { get; set; }

        /// <summary>
        /// 摄像头   0：正常；1：连接异常
        /// </summary>
        public int camera_status { get; set; }

        /// <summary>
        /// 温湿度传感器状态   0：正常；1：连接异常
        /// </summary>
        public int sensor_status { get; set; }

        /// <summary>
        /// 温湿度数值【温度；湿度】
        /// </summary>
        public string temperature { get; set; }

        /// <summary>
        /// 站点id
        /// </summary>
        public long site_id { get; set; }


        /// <summary>
        /// 站点名称
        /// </summary>
        public string site_name { get; set; }


        /// <summary>
        /// 是否连接
        /// </summary>
        public bool is_connect { get; set; }
    }
}
